Matthias Clasen [Fri, 18 Jan 2013 02:49:24 +0000 (21:49 -0500)]
Fix includes
gtkbubblewindow.h was including gtk.h, which in turn included
gtkselectionwindow.h, leading to build failure.
Carlos Garnacho [Wed, 16 Jan 2013 14:38:40 +0000 (15:38 +0100)]
Don't allow individual #includes for GtkBubble/SelectionWindow
Carlos Garnacho [Tue, 15 Jan 2013 16:32:42 +0000 (17:32 +0100)]
GtkBubbleWindow: Use style border color to stroke the bubble shape
This improves themeability a bit, corners are still square though...
Carlos Garnacho [Fri, 11 Jan 2013 16:37:02 +0000 (17:37 +0100)]
textview: Use GtkSelectionWindow for touch text selection
This enables touch devices to manipulate the text selection
Carlos Garnacho [Fri, 11 Jan 2013 16:35:32 +0000 (17:35 +0100)]
entry: Use GtkSelectionWindow for touch text selection
This enables touch devices to manipulate the text selection
Carlos Garnacho [Fri, 11 Jan 2013 16:34:42 +0000 (17:34 +0100)]
Add GtkSelectionWindow
This is a helper object to provide context-dependent content
edition apt for touch devices.
Carlos Garnacho [Fri, 11 Jan 2013 16:32:08 +0000 (17:32 +0100)]
Add GtkBubbleWindow
This popup window widget can be used for touch friendly context
menus that point to a concrete area.
Carlos Garnacho [Fri, 11 Jan 2013 16:22:02 +0000 (17:22 +0100)]
texthandle: Set a bigger input shape, covering the line height
Now, even if the handles being rendered are small, the handle touch
input shape will be as wide as the visible part of the rendered asset, and
high enough to cover both the handle and the height of the line where
the selection bound is.
Also, make handles have the same virtual distance to the line top/bottom
when a drag starts, so the handle doesn't jump to another line after a
too short threshold.
Carlos Garnacho [Wed, 21 Nov 2012 15:49:37 +0000 (16:49 +0100)]
Ensure the insertion handle stays on fake events (eg from IM)
Don't set handles mode to none if the event has send_event set.
For consistency with GtkEntry, also make GtkTextView keep the
handle mode on buffer changes.
Carlos Garnacho [Wed, 7 Nov 2012 13:23:04 +0000 (14:23 +0100)]
texthandles: Keep state internally to avoid X overhead
Handles now do sync X calls less often. As visibility state
is kept, it now can move+resize+show handles at once instead
of in separated steps.
Marek Černocký [Tue, 5 Mar 2013 14:11:59 +0000 (15:11 +0100)]
Updated Czech translation
Marek Černocký [Tue, 5 Mar 2013 14:07:06 +0000 (15:07 +0100)]
Updated Czech translation
Benjamin Otte [Tue, 5 Mar 2013 12:09:10 +0000 (13:09 +0100)]
entrycompletion: Don't reconnect signals all the time
We block signal handlers areound GtkEntry signal emission and if those
signals get used to call functions on the completion that cause a
reconnection of the signals, then the reconnected signals will not be
blocked anymore (so they might get emitted?) and unblocking the old
signal id will later cause warnings.
Fixes spurious warnings in gtk/tests/filechooser tests.
Benjamin Otte [Tue, 5 Mar 2013 10:55:28 +0000 (11:55 +0100)]
a11y: Emit active-descendants-changed when focus changes
This fixes the a11y/tree-relationships testcase.
The emission was lost in refactoring in commit
76670734f4330acc28c3c1d885ef944e85beb36e
Theppitak Karoonboonyanan [Tue, 5 Mar 2013 09:02:19 +0000 (16:02 +0700)]
Updated Thai translation
Rafael Ferreira [Tue, 5 Mar 2013 03:49:11 +0000 (00:49 -0300)]
Updated Brazilian Portuguese translation
Rafael Ferreira [Tue, 5 Mar 2013 02:59:16 +0000 (23:59 -0300)]
Updated Brazilian Portuguese translation proofread by Enrico Nicoletto
Ross Lagerwall [Thu, 21 Feb 2013 22:48:06 +0000 (22:48 +0000)]
x11: Remove unused macro
https://bugzilla.gnome.org/show_bug.cgi?id=694395
Alban Browaeys [Mon, 4 Mar 2013 15:22:00 +0000 (16:22 +0100)]
bin: initialize out variables to zero for get_preferred_ functions.
Fixes case of child not visible then minimum_width/heigth natural_width
/heigth not initialized. Thus caller gets a random value.
https://bugzilla.gnome.org/show_bug.cgi?id=695131
Aleksander Morgado [Fri, 1 Mar 2013 10:54:09 +0000 (11:54 +0100)]
clipboard: remove dead code
When setting contents of the clipboard and ownership or user data changes, we
end up calling clipboard_unset() to fully cleanup the previous clipboard state.
This call will itself call clear_func() for the previous user_data, and always
reset both 'get_func' and 'clear_func' to NULL.
So it's actually not possible to have 'get_func' being non-NULL once we have
called clipboard_unset(), so just remove that condition check and the code
inside.
https://bugzilla.gnome.org/show_bug.cgi?id=694924
Michael Hofmann [Sun, 17 Feb 2013 15:01:06 +0000 (16:01 +0100)]
GtkColorChooserWidget: deselect swatch before removing palettes
When adding custom palettes, set the current swatch to NULL if the
palette it is on is going to be removed.
https://bugzilla.gnome.org/show_bug.cgi?id=693995
Will Thompson [Mon, 4 Mar 2013 22:47:21 +0000 (22:47 +0000)]
gtkenums: correct various documentation typos
Will Thompson [Wed, 29 Feb 2012 17:19:55 +0000 (17:19 +0000)]
docs: correct various spelling and grammar errors
I noticed a few cases of "wether", and while fixing them noticed a few
"its" which should be "it's". It all went downhill from there.
Giovanni Campagna [Mon, 4 Mar 2013 20:33:04 +0000 (21:33 +0100)]
GtkIconTheme: fix regression from
0db32f0632ef4675bfcfc9ec201f7af157a48ab0
icon_info_dup() is now called also for GtkIconInfos that already have
a pixbuf, so we must make sure that we correctly carry that from
the original icon_info to the copy.
Piotr Drąg [Mon, 4 Mar 2013 20:12:54 +0000 (21:12 +0100)]
Updated Polish translation
Cosimo Cecchi [Fri, 4 May 2012 21:53:54 +0000 (17:53 -0400)]
appchooserdialog: remove redundant checks
This is checked by GIO for us now.
Also, it's generally just a bad idea spawning error dialogs from inside
a library on top of other dialogs: lesson learned.
https://bugzilla.gnome.org/show_bug.cgi?id=675333
Giovanni Campagna [Fri, 1 Mar 2013 22:45:43 +0000 (23:45 +0100)]
GtkIconTheme: fix failed assertion when asynchrnously loading emblemed icons
If you tried to lookup an icon that was not emblemed, and then looked up
an emblemed icon with the same base, we would override the iconinfo adding
the emblems inline. Later, when the icon finished rendering, inside
gtk_icon_info_load_icon_finish, we would copy the result from the duplicate
(which did not include the emblem infos), but the icon would still fail the
assertion, because emblems infos are present but emblem_applied is false
(they were not requested in the first place!).
Solve this by avoiding the overwrite on a cached iconinfo, and instead duplicate
the iconinfo before adding the emblems. It is expected that another layer
of caching (such as StTextureCache in gnome-shell) will take care of avoiding
multiple rendering of the same icon+emblem combination.
https://bugzilla.gnome.org/show_bug.cgi?id=694968
Marek Kasik [Mon, 4 Mar 2013 11:00:49 +0000 (12:00 +0100)]
printing: Mark texts for translation correctly
Use _() instead of N_() for printer states. Mark connection
string "; " for translation so it is correctly handled for
right to left languages.
Marek Kasik [Mon, 4 Mar 2013 13:34:21 +0000 (14:34 +0100)]
printing: Remove unnecessary break
Remove the first space when connecting multiple printer states
together.
Related to
https://bugzilla.gnome.org/show_bug.cgi?id=688956
Marek Kasik [Mon, 4 Mar 2013 13:29:24 +0000 (14:29 +0100)]
printing: List Avahi printers
Show printers advertised by avahi on local network. CUPS
backend now looks for _ipps._tcp and _ipp._tcp services
offered by avahi. If it finds such a service (printer)
it requests its attributes through IPP_GET_PRINTER_ATTRIBUTES
ipp request and adds it to the list of printers. Such printer
behaves like a remote printer then.
If an avahi printer is a default printer then it is considered
default by the backend only if there is no local or remote
default printer.
This functionality is enabled when building Gtk+ with CUPS 1.6
or later because it replaces browsing protocol removed in CUPS 1.6.
https://bugzilla.gnome.org/show_bug.cgi?id=688956
Rafael Ferreira [Mon, 4 Mar 2013 03:48:20 +0000 (00:48 -0300)]
Updated Brazilian Portuguese translation
William Jon McCann [Sat, 2 Mar 2013 12:50:50 +0000 (07:50 -0500)]
Place the search icon in the primary slot of the entry
Instead of using the secondary slot for both clear and search. This
Makes it possible to use the search icon for actions regardless of
whether text has been entered, makes it possible to use the primary
icon to indicate search status, allows us to indicate the purpose
of the entry even if text has been already entered.
https://bugzilla.gnome.org/show_bug.cgi?id=694990
Aurimas Černius [Sat, 2 Mar 2013 21:25:58 +0000 (23:25 +0200)]
Updated Lithuanian properties translation
Nguyễn Thái Ngọc Duy [Sat, 2 Mar 2013 03:03:33 +0000 (10:03 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 2 Mar 2013 02:49:31 +0000 (09:49 +0700)]
po/vi: import from Damned Lies
Matthias Clasen [Sat, 2 Mar 2013 00:27:10 +0000 (19:27 -0500)]
Fix make check
Matthias Clasen [Sat, 2 Mar 2013 00:13:30 +0000 (19:13 -0500)]
Revert "Fix gtkprintbackendcups crash"
This reverts commit
54ffc982e96bc4b2484a2611c7dc5cf24c4c4a1a.
I've undone the GList behaviour change instead.
Cosimo Cecchi [Sat, 23 Feb 2013 00:53:03 +0000 (19:53 -0500)]
treeview: center expander allocated space
This patch centers the expander in the extra space allocated by the
horizontal-separator style property.
https://bugzilla.gnome.org/show_bug.cgi?id=650424
Cosimo Cecchi [Sat, 23 Feb 2013 00:51:54 +0000 (19:51 -0500)]
treeview: properly calculate the treeview expander size
It should be expander-size + horizontal-separator / 2. Rework code
calculating the render position of the arrow to account for the larger
size.
https://bugzilla.gnome.org/show_bug.cgi?id=650424
Cosimo Cecchi [Sat, 23 Feb 2013 00:26:40 +0000 (19:26 -0500)]
treeview: remove extra padding handling
We'll replace this with a proper calculation.
https://bugzilla.gnome.org/show_bug.cgi?id=650424
John Ralls [Fri, 1 Mar 2013 18:13:20 +0000 (10:13 -0800)]
Fix gtkprintbackendcups crash
From trying to call g_list_delete_link with a NULL node or
removed_printer_checklist.
Benjamin Otte [Fri, 1 Mar 2013 13:21:19 +0000 (14:21 +0100)]
broadway: pointer targets differ in signedness
Benjamin Otte [Fri, 1 Mar 2013 13:20:57 +0000 (14:20 +0100)]
broadway: variable 'broadway_display' set but not used
Chao-Hsiung Liao [Fri, 1 Mar 2013 14:33:07 +0000 (22:33 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Alexander Larsson [Fri, 1 Mar 2013 13:56:30 +0000 (14:56 +0100)]
Re-fix opacity group handling
The last change fixed the windowed widget case but broke
opacity group handling for windowed child widgets. This fixes
up the code by making sure we norender_children in when there
is an opacity group.
This also cleans up the comments about how this works to something
that is hopefully more understandable.
Alexander Larsson [Fri, 1 Mar 2013 13:55:54 +0000 (14:55 +0100)]
gdkwindow: Update window debug dump code
This makes it build without warning and also dumps alpha
Alexander Larsson [Fri, 1 Mar 2013 11:23:59 +0000 (12:23 +0100)]
TextView: Properly render background
We always need to render the background, as the window
background is not always set (i.e. during gtk_widget_draw()) or
when its partially visible.
https://bugzilla.gnome.org/show_bug.cgi?id=694925
Мирослав Николић [Fri, 1 Mar 2013 10:39:42 +0000 (11:39 +0100)]
Updated Serbian translation
Sweta Kothari [Fri, 1 Mar 2013 07:19:00 +0000 (12:49 +0530)]
Updated gujarati file
John Ralls [Thu, 28 Feb 2013 20:34:33 +0000 (12:34 -0800)]
Fix broken quartz build from
df3e19b
It's _gdk_display, not display
keyring [Thu, 28 Feb 2013 13:08:27 +0000 (21:08 +0800)]
Update Simplified Chinese translation
Matthias Clasen [Thu, 28 Feb 2013 12:44:00 +0000 (07:44 -0500)]
Fix DND with frame sync
Mutter magically ignores override-redirect windows with geometry
-100-100+1+1, and this breaks the frame synchronization between
gtk+ and mutter. For now, we avoid the issue by simply giving
the window a different geometry.
https://bugzilla.gnome.org/show_bug.cgi?id=694217
Matthias Clasen [Mon, 25 Feb 2013 20:07:59 +0000 (21:07 +0100)]
Remove GTK_SELECTION_MODE_EXTENDED from the docs
It does not exist anymore as an enum value.
Cosimo Cecchi [Wed, 27 Feb 2013 22:18:28 +0000 (17:18 -0500)]
range: don't draw origin when the slider is invisible
When the range of the GtkRange is zero (i.e. the upper and lower bounds
of the adjustment have the same value), don't use an origin to draw the
trough, as the slider will also be hidden, and the juncture between the
two sections of the trough will be visible.
Alexander Larsson [Wed, 27 Feb 2013 11:57:38 +0000 (12:57 +0100)]
Fix opacity group hack
We can't norender the main window for a windowed widget as we then
never get any expose events.
Priit Laes [Wed, 27 Feb 2013 08:25:42 +0000 (10:25 +0200)]
[l10n] Updated Estonian translation
Chun-wei Fan [Wed, 27 Feb 2013 04:33:42 +0000 (12:33 +0800)]
Fix gtk3-demo Visual Studio projects
Since we are linking in the resource items by the source, we need to
disable WholeProgramOptimization so that the resource stuff does get linked
into the demo binaries, so that they can be loaded properly.
Also make sure that gtk3-demo-application is also built with the multibyte
character set, like the rest.
This should fix bug 694342, at least for Visual Studio builds.
Geoff Reedy [Tue, 26 Feb 2013 23:58:21 +0000 (17:58 -0600)]
GdkScreen: get a long X property correctly
https://bugzilla.gnome.org/show_bug.cgi?id=691426
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Aurimas Černius [Tue, 26 Feb 2013 21:00:46 +0000 (23:00 +0200)]
Updated Lithuanian UI translation
Thomas Wood [Tue, 26 Feb 2013 11:06:45 +0000 (11:06 +0000)]
gdk: prevent NULL pointer access when debugging is enabled
If no updates, redraws, or repaints have been scheduled for this frame,
we will skip immediately to RESUME_EVENTS, and no GdkFrameTimings will
be created.
https://bugzilla.gnome.org/show_bug.cgi?id=694732
Benjamin Otte [Tue, 26 Feb 2013 15:17:33 +0000 (16:17 +0100)]
a11y: Emit text-changed signals when the text-buffer changes
Benjamin Otte [Tue, 26 Feb 2013 14:55:29 +0000 (15:55 +0100)]
gtk-demo: Create new textbuffers for new source/info texts
This is so we can prepare these buffers without them being set on the
widgets yet and only gtk_text_view_set_buffer() them afterwards. And
this in turn gets rid of all the a11y events we were needlessly
emitting.
https://bugzilla.gnome.org/show_bug.cgi?id=694406
Aleksander Morgado [Tue, 26 Feb 2013 13:51:31 +0000 (14:51 +0100)]
win32: fix possible memleak if GlobalAlloc() fails
Also remove the unused 'buf' variable.
https://bugzilla.gnome.org/show_bug.cgi?id=694742
Daniel Mustieles [Tue, 26 Feb 2013 13:49:47 +0000 (14:49 +0100)]
Updated Spanish translation
A S Alam [Tue, 26 Feb 2013 01:22:45 +0000 (06:52 +0530)]
Punjabi: Translation updated (aalam)
A S Alam [Tue, 26 Feb 2013 01:22:38 +0000 (06:52 +0530)]
Punjabi: Translation updated (aalam)
Benjamin Otte [Mon, 25 Feb 2013 20:41:30 +0000 (21:41 +0100)]
API: Export gtk_cell_renderer_class_set_accessible_type()
This function is necessary to implement cell renderer accessibility
support.
Daniel Mustieles [Mon, 25 Feb 2013 17:00:07 +0000 (18:00 +0100)]
Updated Spanish translation
Dimitris Spingos [Mon, 25 Feb 2013 13:54:17 +0000 (15:54 +0200)]
Updated Greek translation
Matthias Clasen [Mon, 25 Feb 2013 10:30:00 +0000 (11:30 +0100)]
Some more documentation fixes
Make frame-clock-related symbols show up in the gtk docs.
Matthias Clasen [Mon, 25 Feb 2013 09:57:34 +0000 (10:57 +0100)]
Fix a few more doc issues
Matthias Clasen [Mon, 25 Feb 2013 09:50:28 +0000 (10:50 +0100)]
Add available marker to gdk_x11_window_set_utf8_property
Matthias Clasen [Mon, 25 Feb 2013 09:49:24 +0000 (10:49 +0100)]
Add another forgotten symbol
Matthias Clasen [Mon, 25 Feb 2013 09:44:29 +0000 (10:44 +0100)]
Add index for new api additions
The index for 3.8 api additions was missing up to now.
Matthias Clasen [Mon, 25 Feb 2013 09:42:42 +0000 (10:42 +0100)]
Pedantic fixes
Remove a C99 comment, and line up comment formatting.
Matthias Clasen [Mon, 25 Feb 2013 09:38:28 +0000 (10:38 +0100)]
Include GdkFrameClock in the docs
Make GdkFrameClock and GdkFrameTimings show up in the docs.
A couple of minor doc fixes are also included.
Matthias Clasen [Mon, 25 Feb 2013 09:36:47 +0000 (10:36 +0100)]
Include public headers in gdk.h
gdkframeclock.h and gdkframetimings.h were not directly included
in gdk.h. They should.
Dimitris Spingos [Mon, 25 Feb 2013 09:06:59 +0000 (11:06 +0200)]
Updated Greek translation po
Dimitris Spingos [Mon, 25 Feb 2013 08:56:48 +0000 (10:56 +0200)]
Updated Greek translation
Matej Urbančič [Sun, 24 Feb 2013 20:22:16 +0000 (21:22 +0100)]
Updated Slovenian translation
Dimitris Spingos [Sun, 24 Feb 2013 08:07:19 +0000 (10:07 +0200)]
Updated Greek translation
Cosimo Cecchi [Fri, 22 Feb 2013 14:14:19 +0000 (09:14 -0500)]
Revert "box: Don't special-case RTL hbox child positions anymore"
This reverts commit
6f86e57c4fb2cd76549910302b3a7145e7fd0e8b.
https://bugzilla.gnome.org/show_bug.cgi?id=694451
Cosimo Cecchi [Fri, 22 Feb 2013 14:14:10 +0000 (09:14 -0500)]
Revert "toolbar: Don't special-case RTL toolbar child positions anymore"
This reverts commit
821a675013e04598503d3c5ea23ab91607f98e70.
https://bugzilla.gnome.org/show_bug.cgi?id=694451
Cosimo Cecchi [Fri, 22 Feb 2013 14:14:04 +0000 (09:14 -0500)]
Revert "combobox: Don't special-case RTL child positions anymore"
This reverts commit
cf712c462d766e32840da21a67708bbf2cbb25a6.
https://bugzilla.gnome.org/show_bug.cgi?id=694451
Marek Černocký [Fri, 22 Feb 2013 21:06:03 +0000 (22:06 +0100)]
Updated Czech translation
Marek Černocký [Fri, 22 Feb 2013 20:48:59 +0000 (21:48 +0100)]
Updated Czech translation
A S Alam [Fri, 22 Feb 2013 08:49:11 +0000 (08:49 +0000)]
Punjabi: Translation updated (aalam)
A S Alam [Fri, 22 Feb 2013 08:49:05 +0000 (08:49 +0000)]
Punjabi: Translation updated (aalam)
Chun-wei Fan [Fri, 22 Feb 2013 05:13:54 +0000 (13:13 +0800)]
Re-organize Visual Studio property sheets a bit
-Use ApiVersion instead of GtkApiVersion for consistency's sake across
the board
-Add placeholder directives in the property sheets for building
introspection files using .bat files directly from the Visual Studio IDE.
Chun-wei Fan [Fri, 22 Feb 2013 05:09:50 +0000 (13:09 +0800)]
Add Visual Studio project for gtk3-demo-application
This is used by the "Application Class" demo... so this should be built
as well especially as we are getting gspawn-win{32|64}-helper.exe fixed
on Visual Studio 2005 (and later) builds.
Federico Mena Quintero [Fri, 22 Feb 2013 00:44:38 +0000 (18:44 -0600)]
filechooserbutton: Don't ever use gtk_file_chooser_get_files()
The file chooser button only supports single-selection modes, so
switch the code to a simpler gtk_file_chooser_get_file() to avoid
dealing with GSLists of a single file.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Thu, 21 Feb 2013 18:55:50 +0000 (12:55 -0600)]
GtkWidget::draw() - Document how to get the dirty region
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Руслан Ижбулатов [Thu, 21 Feb 2013 18:25:21 +0000 (22:25 +0400)]
Make sure icon cache has /-separated subdirs only (v2 - use g_build_path)
https://bugzilla.gnome.org/show_bug.cgi?id=692955
Owen W. Taylor [Wed, 20 Feb 2013 19:46:11 +0000 (14:46 -0500)]
Convert pixbuf animation demo (both copies) to GdkFrameClock
Use the frame clock instead of a 50ms timeout to animate the
spinning pixbufs.
https://bugzilla.gnome.org/show_bug.cgi?id=694302
Owen W. Taylor [Wed, 20 Feb 2013 17:27:07 +0000 (12:27 -0500)]
Broadway/Quartz/Win32: make event source prepare()/check() note paused status
When events are paused, we should not return TRUE from prepare() or check().
GTK+ handles this for events that are already in the GTK+ queue, but
we also need suppress checks for events that are in the system queue - if we
return TRUE indicating that there are events in the system queue, then we'll
call dispatch(), and do nothing. The event source will spin, and will never
run the other phases of the paint clock.
(Broadway doesn't have a window system queue separate from the GDK event queue,
but we write the function the same way for consistency.)
https://bugzilla.gnome.org/show_bug.cgi?id=694274
Thomas Wood [Wed, 20 Feb 2013 13:53:59 +0000 (13:53 +0000)]
wayland: don't attempt to unqueue events when events are paused
When events are paused, we should not return TRUE from prepare() or check().
GTK+ handles this for events that are already in the GTK+ queue, but
we also need suppress checks for events that are in the system queue - if we
return TRUE indicating that there are events in the system queue, then we'll
call dispatch(), and do nothing. The event source will spin, and will never
run the other phases of the paint clock.
https://bugzilla.gnome.org/show_bug.cgi?id=694274
Yuri Myasoedov [Thu, 21 Feb 2013 12:13:56 +0000 (16:13 +0400)]
Updated Russian translation
Chun-wei Fan [Thu, 21 Feb 2013 07:48:04 +0000 (15:48 +0800)]
Redo Completion of Visual Studio projects for gtka11y
Update the Visual Studio projects for gtka11y and the completion of the
projects that go along with it. This have been distcheck'ed on my Ubuntu
12.04 system.
Chun-wei Fan [Thu, 21 Feb 2013 07:30:41 +0000 (15:30 +0800)]
Fix gtk-demo projects
There isn't a custom CSS demo anymore, so remove that from the projects
Chun-wei Fan [Thu, 21 Feb 2013 07:14:25 +0000 (15:14 +0800)]
Update GDK Visual Studio projects
Link to winmm.lib as well, as we are now using timeEndPeriod() and
timeBeginPeriod() since commit
5dbf814f (win32: Request higher
precision timers during animations).